package com.zzyl.mapper;

import com.zzyl.entity.Resource;
import com.zzyl.vo.MenuVo;
import com.zzyl.vo.ResourceVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ResourceMapper {
    List<ResourceVo> selectList(Resource resource);

    void insertResource(Resource resource);

    void updateResource(Resource resource);

    void updateStatus(Resource resource);

    Resource selectByParentNo(String parentResourceNo);

    Integer selectChildsByResourceNo(String resourceNo);

    void deleteResource(String resourceNo);

    List<String> selectUrlListByUserId(Long id);

    List<MenuVo> selectMenuVoByUserId(Long userId);
}
